package packets.s2cpackets;

import entities.Entity;
import packets.SPacket;

/**
 * Sent whenever an entity should change animation. 
 * 
 * Only 1 (swing arm) and 3 (leave bed) is sent by notchian clients.
 * Crouching is sent via 0x13. Damage is server-side, and so is not
 * sent by notchian clients. See also 0x26. 
 *
 */
public class S0x12 extends SPacket {
	public S0x12(Entity entity) {
		super(0x12);
		addInt(entity.geteid());
		add((byte) entity.getAnimation().ordinal());
	}

}
